package main

import (
	"fmt"
	"vector/control/sse"
	"vector/tools"
)

func init() {
	tools.Config.ReadConfig()
	tools.Config.RunMode = "dispatch"
}
func main() {
	task := new(sse.LingXiDispatch)
	err := task.NewTaskData(map[string]any{
		"省份": "安徽",
		"问题": "我的成长值是几级？",
	})
	if err != nil {
		panic(err)
	}
	task.Do()
	result := task.Result()
	fmt.Println()
	for _, item := range result["child"].([]map[string]any) {
		for _, name := range []string{"问题", "回复", "意图", "Think", "气泡", "卡片", "耗时/ms", "备注", "sessionId", "traceId"} {
			fmt.Println(name, item[name])
		}
	}
}
